<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-mealCount-edit" th:object="${mealCount}">
            <input id="countId" name="countId" th:field="*{countId}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户名：</label>
                <div class="col-sm-8">
                    <input id="userName" name="userName" th:field="*{userName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">早餐报餐数量：</label>
                <div class="col-sm-8">
                    <input id="brkCount" name="brkCount" th:field="*{brkCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">早餐未吃数量：</label>
                <div class="col-sm-8">
                    <input id="brkCountNot" name="brkCountNot" th:field="*{brkCountNot}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">午餐报餐数量：</label>
                <div class="col-sm-8">
                    <input id="lchCount" name="lchCount" th:field="*{lchCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">午餐未吃次数：</label>
                <div class="col-sm-8">
                    <input id="lchCountNot" name="lchCountNot" th:field="*{lchCountNot}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">晚餐报餐次数：</label>
                <div class="col-sm-8">
                    <input id="dnerCount" name="dnerCount" th:field="*{dnerCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">晚餐未吃次数：</label>
                <div class="col-sm-8">
                    <input id="dnerCountNot" name="dnerCountNot" th:field="*{dnerCountNot}" class="form-control" type="text">
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/mealCount"
		$("#form-mealCount-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-mealCount-edit').serialize());
			}
		});
	</script>
</body>
</html>
